﻿namespace NET6.Domain.Entities;

/// <summary>
/// 地址
/// </summary>
[SugarTable("address")]
[Tenant(DBEnum.默认数据库)]
public class Address : EntityBase
{
    /// <summary>
    /// 用户ID
    /// </summary>
    public string UserId { get; set; }
    /// <summary>
    /// 收件人姓名
    /// </summary>
    public string Name { get; set; }
    /// <summary>
    /// 收件人手机号
    /// </summary>
    public string Phone { get; set; }
    /// <summary>
    /// 省份
    /// </summary>
    public string Province { get; set; }
    /// <summary>
    /// 城市
    /// </summary>
    public string City { get; set; }
    /// <summary>
    /// 区域
    /// </summary>
    public string Area { get; set; }
    /// <summary>
    /// 详细地址
    /// </summary>
    public string Detail { get; set; }
    /// <summary>
    /// 是否是默认地址
    /// </summary>
    public bool IsDefault { get; set; }
}
